package rmaqlc31.basic;

public class J03_AmbiguousIF {

	public static void main(String[] args) {
		
		//
		int x;
		int y;
		int z;
		
		x = 3;
		y = 2;
		z = 4;
		
		
		//애매모호한 IF문
		if(x>2)
			if(y>2)
				z=x+y; 
			else System.out.println("z is"+z);
		System.out.println("x is"+x);
		if(x>2){
			if(y>2){z=x+y; System.out.println("z is"+z);}
		}else System.out.println("x is"+x);
		
		
		
		int x1;
		int y1;
		int z1;
		
		x1 = 3;
		y1 = 4;
		
		if(x1>2){
			if(y1>2){z1=x1+y1; System.out.println("z1 is"+z1);}
		}else System.out.println("x1 is"+x1);
		
		
		
		int x2;
		int y2;
		int z2;
		
		x2 = 2;
		y2 = 2;
		
		if(x2>2){
			if(y2>2){z2=x2+y2; System.out.println("z2 is"+z2);}
		}else System.out.println("x2 is"+x2);
		
		
		
		
		
	}

}
